export function generateColumns() {
  return [
    {
      type: "selection",
      width: 60,
      align: "center"
    },
    {
      title: this.$t("module.userManage.account"),
      key: "id",
      minWidth: 100
    },
    {
      title: this.$t("module.userManage.name"),
      key: "name",
      minWidth: 100
    },
    {
      title: this.$t("module.userManage.phoneNumber"),
      key: "mobile",
      minWidth: 110
    },
    {
      title: this.$t("module.userManage.email"),
      key: "email",
      minWidth: 110
    },
    {
      title: this.$t("common.operating"),
      align: "left",
      fixed: "right",
      width: 100,
      render: (h, params) => {
        return h("RowTools", {
          props: {
            data: [
              {
                type: "icon",
                icon: "md-create",
                text: this.$t("common.edit"),
                handle: () => {
                  this.editUserInfo(params.row);
                }
              }
            ]
          }
        });
      }
    }
  ];
}